package com.ruoyi.hazard.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("hazard_track_info")
@ApiModel(value="HazardTrackInfo对象", description="隐患整改跟踪表")
public class HazardTrackInfo implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "隐患信息id")
    private Long hazardId;
    @ApiModelProperty(value = "整改描述")
    private String description;
    @ApiModelProperty(value = "整改附件集合（图片/文件URL列表）")
    @TableField("attachments")
    private String attachments;
    @ApiModelProperty(value = "审核人")
    private String auditBy;
    @ApiModelProperty(value = "审核时间")
    private Date auditTime;
    @ApiModelProperty(value = "审核结果（1-通过, 0-不通过）")
    private Integer approved;
    @ApiModelProperty(value = "审核备注")
    private String auditRemark;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人")
    private String createBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @TableLogic
    @ApiModelProperty(value = "删除标记")
    private String delFlag;
}
